package com.xuecheng.content.agent;

import com.xuecheng.api.system.model.dto.CourseCategoryDTO;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.content.agent.fallback.SystemApiAgentFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p></p>
 *
 * @Description:
 */
@FeignClient(value = XcFeignServiceNameList.XC_SYSTEM_SERVICE,
        fallbackFactory = SystemApiAgentFallbackFactory.class)
public interface SystemApiAgent {
    String PREFIX_FLAG = "/system/l/";

    @GetMapping(PREFIX_FLAG+"course-category/{id}")
    RestResponse<CourseCategoryDTO> getCourseCategoryById4s(@PathVariable String id);

}
